package cn.cloudplug.core.manage.picture;

import java.io.File;

import cn.cloudplug.core.index.Scent;

/**
 * Created by pc on 2018/1/24.
 */

public class PictureManager {

    private PictureManager(){};

    private static final class Holder{
        private static final PictureManager Instance = new PictureManager();
    }

    public static PictureManager getInstance(){return Holder.Instance;}

    public void getPicList(Callback callback){
        new PictureSearcher().execute(Scent.getAppContext(),callback);
    }

    public void delPic(File file){
        if(file!=null&&file.isFile())file.delete();
    }

}
